﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace IcsZero.Client.WebMvc.Areas.Server
{
    [ApiController]
    [Route("api/[controller]/[action]")]
    public class ServerInfoController : ControllerBase
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public string GetServerTime()
        {
            return $"{DateTime.Now:u}";
        }

        [HttpGet]
        public string GetOSInfo()
        {
            return Environment.OSVersion.ToString();
        }
    }
}
